package org.casper.bean;
/**
 * 用户  其中按照权限分配 包含普通用户 版主  以及系统管理员
 * @author Casper
 * Create_time:2015年10月20日 下午10:49:45
 * description:
 */
public class User {
	private int id;
	private String email;						//注册邮箱
	private String pass;						//登录密码
	private String question;					//密保问题
	private String answer;						//密保答案
	private int point;							//积分
	private String regtime;						//注册时间
	private int currank;						//当前排名
	private int lastrank;						//上次排名
	private String profession;					//职业
	private String sex;							//性别
	private String birthday;					//出生日期
	private String lastip;						//上次登录ip
	private int onlinetime;						//在线时间
	private int isonline;						//是否在线
	private int isdelete;						//是否删除
	private int isactive;						//是否激活
	
	public User() {
	
	}
	
	
	
	public User(String email, String pass) {
		super();
		this.email = email;
		this.pass = pass;
	}
	
	
	
	public User(int id, String email, String pass,String lastip) {
		super();
		this.id = id;
		this.email = email;
		this.pass = pass;
		this.lastip = lastip;
		
	}



	public User(String email, String pass, String regtime) {
		super();
		this.email = email;
		this.pass = pass;
		this.regtime = regtime;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPass() {
		return pass;
	}

	public void setPass(String pass) {
		this.pass = pass;
	}

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public int getPoint() {
		return point;
	}

	public void setPoint(int point) {
		this.point = point;
	}

	public String getRegtime() {
		return regtime;
	}

	public void setRegtime(String regtime) {
		this.regtime = regtime;
	}

	public int getCurrank() {
		return currank;
	}

	public void setCurrank(int currank) {
		this.currank = currank;
	}

	public int getLastrank() {
		return lastrank;
	}

	public void setLastrank(int lastrank) {
		this.lastrank = lastrank;
	}

	public String getProfession() {
		return profession;
	}

	public void setProfession(String profession) {
		this.profession = profession;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getLastip() {
		return lastip;
	}

	public void setLastip(String lastip) {
		this.lastip = lastip;
	}

	public int getOnlinetime() {
		return onlinetime;
	}

	public void setOnlinetime(int onlinetime) {
		this.onlinetime = onlinetime;
	}

	public int getIsonline() {
		return isonline;
	}

	public void setIsonline(int isonline) {
		this.isonline = isonline;
	}

	public int getIsdelete() {
		return isdelete;
	}

	public void setIsdelete(int isdelete) {
		this.isdelete = isdelete;
	}

	public int getIsactive() {
		return isactive;
	}

	public void setIsactive(int isactive) {
		this.isactive = isactive;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", email=" + email + ", pass=" + pass
				+ ", question=" + question + ", answer=" + answer + ", point="
				+ point + ", regtime=" + regtime + ", currank=" + currank
				+ ", lastrank=" + lastrank + ", profession=" + profession
				+ ", sex=" + sex + ", birthday=" + birthday + ", lastip="
				+ lastip + ", onlinetime=" + onlinetime + ", isonline="
				+ isonline + ", isdelete=" + isdelete + ", isactive="
				+ isactive + "]";
	}
	
	

}
